#include"IFieldPyramidKernel.hpp"
#include"DGGSFieldPyramidImpl.hpp"


using namespace NNU::DGGS::FieldPyramid;

extern "C" DGGS_FIELDPYRAMID_API IFieldPyramidKernel* CreateFieldPyramidObj(FieldPyramidSet pyramidSet)
{
    IFieldPyramidKernel* pKernel =new DGGSFieldPyramidImpl();
    pKernel->init(pyramidSet);
    return pKernel;

}

extern "C" DGGS_FIELDPYRAMID_API  void DestroyFieldPyramidObj(IFieldPyramidKernel * &kernel)
{
    if (kernel != nullptr)
    {
        kernel->release();
    }
    delete kernel;
    kernel= nullptr;
}